<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class BuddhaArticleIndex extends TimeModel
{

    protected $name = "buddha_article_index";

    protected $deleteTime = "delete_time";

    
    
    public function getStatusList()
    {
        return ['0'=>'禁用','1'=>'启用',];
    }

    protected function getGetArticleAttr($value){
        $title = (new BuddhaArticle())->getBaseById($value);
        return $title['title'] ?? "";
    }


}